package com.wclass.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.wclass.entity.PostsSearchWord;
import com.wclass.mapper.PostsSearchWordMapper;
import com.wclass.service.IPostsSearchWordService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 帖子搜索关键词 服务实现类
 * </p>
 *
 * @author SEN
 * @since 2019-02-19
 */
@Service
public class PostsSearchWordServiceImpl extends ServiceImpl<PostsSearchWordMapper, PostsSearchWord> implements IPostsSearchWordService {

    @Override
    public Page<PostsSearchWord> getHotPostsSearch(Page<PostsSearchWord> page) {
        return page.setRecords(this.baseMapper.getHotPostsSearch(page));
    }

}
